home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
games
/
larn12s.arc
/
TERMCAP.ARC
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1987-10-28
|
962b
|
60 lines
#
# FILE
#
# Makefile build termcap library
#
# KEY WORDS
#
# libraries
# test functions
#
# SYNOPSIS
#
# make compile the library sources
# make tests compile sources for tests
#
# DESCRIPTION
#
# Standard make file for building the termcap library and tests.
#
# AUTHOR
#
# Fred Fish
#
CC = cc
CFLAGS = -O -DDGK
LSOURCES = tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c \
isdigit.c fgetlr.c
LOBJECTS = tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o \
tputs.o isdigit.o fgetlr.o
libtermc.a : $(LOBJECTS)
ar rksv libtermc.a $(LOBJECTS)
install: libtermc.a
mv libtermc.a \lib
all: libtermc.a tests
echo 'done'
tests : testtcp.tos worms.ttp
worms.ttp: worms.o
$(CC) -o worms.ttp worms.o -ltermcap
testtcp.tos : testtcp.o
$(CC) -o testtcp.tos testtcp.o -ltermcap
testtcp.o : testtcp.c
$(CC) -c $(CFLAGS) testtcp.c
#
# Clean up the directory.
#
clean:
rm *.o